Skip to content

Make hardware smoke tests GPU-agnostic - #202

Open
ZyyXD1 wants to merge 1 commit into
Lemxy:mainfrom
ZyyXD1:test/gpu-agnostic
Open

ZyyXD1 wants to merge 1 commit into
Lemxy:mainfrom
ZyyXD1:test/gpu-agnostic

Conversation

@ZyyXD1

@ZyyXD1 ZyyXD1 commented Nov 27, 2026

Copy link
Copy Markdown

Problem

The hardware smoke tests assume specific hardware, such as an NVIDIA card with over 4 GB of dedicated memory. That does not hold on integrated GPUs or other machines.

Changes (test code only)

  • gpu.rs: removed the requirements for an NVIDIA GPU, over 4 GB of dedicated memory, a PCI location and a readable temperature. The test still checks that adapters are found and have a name and a DirectX description. Renamed to real_adapters_have_names_and_directx.
  • hw.rs: removed the 512 MiB minimum for video memory. The driver version is checked when a GPU name is available.

No production behaviour changes.

Coverage tradeoff

gpu.rs no longer verifies temperature reading or PCI location. The conditional NVIDIA temperature check in hw.rs remains.

Testing

  • cargo test -p rtaskmgr-win32 passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant